<?php
defined('IN_TS') or die('Access Denied.');
/* 
 * 秀店话题编辑
 */

$talkid = intval($_GET['talkid']);

if($talkid == 0){
	qiMsg("非法操作！");
}

$userid = intval($TS_USER['user']['userid']);

if($userid == 0){
	qiMsg("非法操作！");
}

$strTopic = $db->once_fetch_assoc("select * from ".dbprefix."talk_topics where talkid='".$talkid."'");
$strTopic['content'] = htmlspecialchars($strTopic['content']);


if($TS_USER['user']['userid'] !== '1'){
	qiMsg("机房重地，闲人免进！");
}

//帖子类型

$title = '编辑话题';

include template("topic_edit");